<script>
	function bar() {
		const a = new class Foo {
			foo = $state(0)
		}
	}
</script>
